//
//  WebSocketManager.h
//  DJIVideo
//
//  Created by wenpd on 2021/4/8.
//

#import <Foundation/Foundation.h>
#import <SocketRocket/SocketRocket.h>

NS_ASSUME_NONNULL_BEGIN

@interface WebSocketManager : NSObject<SRWebSocketDelegate>

+ (instancetype)shareManager;

- (void)sendData:(NSData *)data;
- (void)openWebsocket:(NSString *)url param:(NSDictionary*)param;
- (void)closeWebSocket;

@end

NS_ASSUME_NONNULL_END
